package com.example.qrcodecamera;

public class MaterialCSVRecord {

    private int id;
    private String materialId;    // 物料编号
    private String materialName;  // 物料名称
    private double totalWeight;   // 总重量
    private double currentWeight; // 当前重量
    private String storageTime;   // 入库时间

    public MaterialCSVRecord(int id, String materialId, String materialName,
                     double totalWeight, double currentWeight,
                     String storageTime) {
        this.id = id;
        this.materialId = materialId;
        this.materialName = materialName;
        this.totalWeight = totalWeight;
        this.currentWeight = currentWeight;
        this.storageTime = storageTime;

    }

    // Getter方法
    public int getId() {
        return id;
    }
    public String getMaterialId() { return materialId; }
    public String getMaterialName() { return materialName; }

    public double getTotalWeight() { return totalWeight; }
    public double getCurrentWeight() { return currentWeight; }
    public String getStorageTime() { return storageTime; }
}